<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
use think\Log;


class baseindex  extends Controller{
	public $baseurl="http://localhost/sjfx";
	public function _initialize()
      {
            $r=Request::instance();
      	if (is_null($r->session('gh'))&&'homepage'!=$r->action()){
      		$this->redirect('index/homepage',302);          
      	}
      	$this->assign('baseurl',$this->baseurl);
      	$this->assign('gh',$r->session('gh'));
      }
}